package com.jxb.netty.example;

import com.jxb.netty.example.nio.NioClientHandle;
import com.jxb.netty.network.nio.NioClient;

public class RelaySend {

    private static NioClientHandle nioClientHandle;

    public static void main(String[] args) throws Exception {
        nioClientHandle = new NioClientHandle("192.168.3.200",4196);
        new Thread(nioClientHandle).start();
        RelaySend.sendMsg("01 05 00 00 FF 00 8C 3A");
    }

    private static boolean sendMsg(String next) throws Exception {
        nioClientHandle.sendMsg(next);
        return true;
    }

}
